PEGetErrorText

Use PEGetErrorText to return a string handle describing the status of the most recent Crystal Report Engine function called. This function is used with PEGetHandleString. These functions can be used in a Custom-Print Link to display the error string as part of an error message.

C Syntax
BOOL CRPE_API PEGetErrorText (
        short printJob,
        HANDLE FAR *textHandle,    
        short Far *textLength );
Parameters

printJob

Specifies the print job from which you want to retrieve an error string. If the most recent function was called while no print job was open, use 0 this parameter.

textHandle

Specifies a pointer to the handle of the string containing the error text.

textLength

Specifies a pointer to the length of the error string (in bytes) including the terminating byte.

Returns
VB Syntax
Declare Function PEGetErrorText Lib "crpe32.dll" (ByVal printJob As 
Integer, _
        TextHandle As Long, TextLength As Integer) As Integer
Delphi Syntax

Delphi code for error handling

function PEGetErrorText (
    printJob: Word;
    var textHandle: HWnd;
    var textLength: Word
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com